package com.xzj.admin.flow.domain.vo;

import com.xzj.admin.flow.domain.vo.edge.FlowEdgeVo;
import com.xzj.admin.flow.domain.vo.node.FlowNodeVo;
import lombok.Data;

import java.util.List;

/**
 * @program: xzj-admin
 * @ClassName: FlowVo
 * @description: 流程信息聚合返回类
 * @author: XiaZunJun
 * @create: 2024-09-27 10:45
 */
@Data
public class FlowRespVo {

    private List<FlowNodeVo> nodes;

    private List<FlowEdgeVo> edges;

    public static FlowRespVo buildResp(List<FlowNodeVo> nodes, List<FlowEdgeVo> edges) {
        FlowRespVo flowRespVo = new FlowRespVo();
        flowRespVo.setNodes(nodes);
        flowRespVo.setEdges(edges);
        return flowRespVo;
    }
}
